home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2000 #5
/
Amiga Plus CD - 2000 - No. 5.iso
/
Tools
/
Dev
/
GameboyDev
/
GBDK
/
include
/
time.h
< prev
next >
Wrap
C/C++ Source or Header
|
1999-03-29
|
489b
|
28 lines
/*
time.h
Simple, not completly conformant implementation of time routines
*/
#ifndef __TIME_H
#define __TIME_H
#include <types.h>
/* The data types */
typedef UWORD clock_t;
typedef UWORD time_t;
/* Run of the VBL interrupt so rate is 60/sec */
#define CLK_TCK 60
#define CLOCKS_PER_SEC 60
/* Returns time since turn on */
clock_t clock(void);
/* Returns time since turn on in seconds */
/* If t != NULL, is also stored in *t */
time_t time(time_t *t);
#endif /* __TIME_H */